<template>
	<view class="message-wrapper">
		<view v-show="!showEmpty">
			<u-empty text="暂无消息" icon-size="152" font-size="40" margin-top="100" class="empty"></u-empty>
		</view>
		<view v-show="showEmpty" class="message-list">
			<view class="message-cell" @click="handleToMessageDetail">
				<view class="message-title">11</view>
				<view class="message-icon">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		
		computed:{
			showEmpty() {
				return true
			}
		},
		
		methods:{
			handleToMessageDetail(message) {
				uni.navigateTo({
					url: `/pages/insidePages/message/messageDetail`
				})
			}
		}
	}
</script>

<style lang="scss">
	.message-cell {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 2rpx solid #ddd;
		padding: 24rpx 40rpx;
	}
</style>
